package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;


/**
 * <p>
 * 包材关系
 * </p>
 *
 * @author rfwang
 * @since 2021-08-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_packing_material_goods")
@ApiModel(value="PackingMaterialGoods对象", description="包材关系")
public class PackingMaterialGoods extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "全局code")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构code")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "商品标识")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "包材编码")
    @TableField("packing_material_code")
    private String packingMaterialCode;

    @ApiModelProperty(value = "包材名称")
    @TableField("packing_material_name")
    private String packingMaterialName;

    @ApiModelProperty(value = "包材容积")
    @TableField("volume")
    private BigDecimal volume;

    @ApiModelProperty(value = "包材集合")
    @TableField(exist = false)
    private List<PackingMaterialGoods> packingMaterialGoodsList;

    @ApiModelProperty(value = "包材关系快速匹配")
    @TableField("fast_matching")
    private String fastMatching;



}
